<!-- 订阅 -->
<template>
  <sub-wrapper @close="onClose">
    <template #content>
      <sub-content :data="config.subscription" />
    </template>
    <template #logo>
      <img
        :src="config.subscription.logo"
        class="h-full w-full"
      />
    </template>
  </sub-wrapper>
</template>

<script
  lang="ts"
  setup
  name="WebSub"
>
import useSub from './hook';
const emit = defineEmits(['unmount'])

const { onClose, config } = useSub(emit)

</script>

